<template>
  <div class="father">
    <div class="son">
      <h3>就诊记录详情<span @click="closeShow">X</span></h3>
      <p>就诊日期：{{ detailObj.date }}</p>
      <p>医生姓名：{{ detailObj.docname }}</p>
      <p>诊断结果：{{ detailObj.result }}</p>
      <p>处方信息：{{ detailObj.info }}</p>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  props: {
    detailObj: {
      type: Object,
      required: true,
    },
  },
  components: {},

  computed: {},
  watch: {},
  methods: {
    closeShow() {
      this.$emit('closeShow')
    },
  },
  created() {},
  mounted() {},
  beforeDestroy() {},
}
</script>
<style scoped>
.father {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.son {
  position: relative;
  width: 180px;
  height: 240px;
  background-color: #f9f9f9;
  padding-left: 20px;
  margin: 400px auto;
  border-radius: 5px;
  padding-top: 10px;
}
h3 {
  margin-bottom: 30px;
}
span {
  margin-left: 30px;
}
</style>
